<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/include.inc.jsp"%>

<div class="pageContent">
	
	<form method="post" action="major/toAdd" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone)">
		<div class="pageFormContent" layoutH="80">

			<dl>
				<dt>专业名称：</dt>
				<dd>
					<input type="text" name="majorName" maxlength="20" class="required" />
				</dd>
			</dl>
			<dl>
				<dt>所属院系：</dt>
				<dd>
					<select name="depId" class="required">
							<option value="">未选择</option>
							<c:forEach var="department" items="${depList }">
							<option value="${department.depId }" >${department.depName }</option>
							</c:forEach>
					</select>
				</dd>
			</dl>
			
			
		<!-- 	<div class="divider"></div> -->
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>


<script type="text/javascript">
function customvalidXxx(element){
	if ($(element).val() == "xxx") return false;
	return true;
}
</script>
